<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:template match="HeaderInfo">
set CASTLE=<xsl:value-of select="ref1"/>
set NUNIT=<xsl:value-of select="ref2"/>

mkdir Build


<xsl:text> 
</xsl:text><xsl:value-of select="ref3"/>\csc.exe /debug:full /target:library /out:Build\<xsl:value-of select="ProjectName"/>.Core.dll Core\Domain\*.cs Core\Domain\DataAccess\*.cs Core\Interfaces\*.cs Core\Properties\AssemblyInfo.cs  /r:"%CASTLE%\bin\net-2.0\Iesi.Collections.dll"; /warn:0 /resource:Core\Domain\DataAccess\project.hbm.xml /resource:Core\Domain\DataAccess\user.hbm.xml
<xsl:text> 
</xsl:text>
<xsl:value-of select="ref3"/>\csc.exe /debug:full /target:library /out:Build\<xsl:value-of select="ProjectName"/>.Data.dll Data\NHibernateDal\*.cs Data\Properties\AssemblyInfo.cs /r:Build\<xsl:value-of select="ProjectName"/>.Core.dll;"%CASTLE%\bin\net-2.0\nhibernate.dll"; /warn:0
<xsl:text> 
</xsl:text>
<xsl:value-of select="ref3"/>\csc.exe /debug:full /target:library /out:Build\<xsl:value-of select="ProjectName"/>.Test.dll Test\*.cs Test\DataAccess\*.cs Test\Properties\AssemblyInfo.cs  /r:"Build\<xsl:value-of select="ProjectName"/>.Core.dll";"Build\<xsl:value-of select="ProjectName"/>.Data.dll";"%CASTLE%\bin\net-2.0\log4net.dll";"%NUNIT%\bin\nunit.framework.dll";"%CASTLE%\bin\net-2.0\nhibernate.dll";"%CASTLE%\bin\net-2.0\Iesi.Collections.dll"; /warn:0

copy /Y "%CASTLE%\bin\net-2.0\log4net.dll" Build
copy /Y "%CASTLE%\bin\net-2.0\nhibernate.dll" Build
copy /Y "%CASTLE%\bin\net-2.0\Iesi.Collections.dll" Build
copy /Y "%NUNIT%\bin\nunit.framework.dll" Build
copy /Y Test\App.Config Build\<xsl:value-of select="ProjectName"/>.Test.dll.config

start Build\<xsl:value-of select="ProjectName"/>.Test.dll
  </xsl:template>
</xsl:stylesheet>


